<div class="bgc-w box box-primary">
    <!--盒子头-->
    <div class="box-header">
        <h3 class="box-title">
            <a href="positionedit" class="label label-success" style="padding: 5px;">
                <span class="glyphicon glyphicon-plus"></span> 新增
            </a>
        </h3>
        <div class="box-tools">
            <div class="input-group" style="width: 150px;">
                <input type="text" class="form-control input-sm"
                       placeholder="查找..." id="find" value="${find!''}"/>
                <div class="input-group-btn">
                    <a class="btn btn-sm btn-default"><span
                                class="glyphicon glyphicon-search" onclick="queryPositionName()"></span></a>
                </div>
            </div>
        </div>
    </div>
    <!--盒子身体-->
    <div class="box-body no-padding">
        <div class="alert alert-danger alert-dismissable" role="alert"
             style="display: none;">
            错误信息:
            <button class="close thisclose" type="button">&times;</button>
            <span class="error-mess"></span>
        </div>
        <div class="table-responsive">

            <table class="table table-hover table-striped">
                <tr>

                    <th scope="col">名称</th>
                    <th scope="col">层级</th>
                    <th scope="col">描述</th>
                    <th scope="col">操作</th>
                </tr>
                <#list positionlist as position>
                    <tr>
                        <td><span>${position.name}</span></td>
                        <td><span>${(position.level)!''}</span></td>
                        <td><span>${(position.describtion)!''}</span></td>
                        <td><a href="positionedit?positionid=${position.positionId!''}&page=${page.number}"
                               class="label xiugai"><span
                                        class="glyphicon glyphicon-edit"></span> 修改</a>
                            <a href="deletePosition?positionId=${position.positionId!''}&page=${page.number}"
                               onclick="{return confirm('删除该记录将不能恢复，确定删除吗？');};" class="label shanchu"><span
                                        class="glyphicon glyphicon-edit"></span> 删除</a></td>
                    </tr>
                </#list>
            </table>

        </div>
    </div>
    <#include "/common/paging.ftl">
</div>

<script>

    function queryPositionName() {
        var find = $("#find").val().trim();
        location.href = "positionmanage?find=" + find;

    }
</script>